import os
import sys
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *


class TM_Window(QWidget):

    def __init__(self):
        super(TM_Window, self).__init__()
        self.setWindowTitle('项目预算')
        self.setMinimumWidth(800)
        self.main_layout=QVBoxLayout()
        self.main_layout.setSpacing(35)
        logo_font=QFont('',20,75)
        self.logo_label=QLabel('各项目预算统计')
        self.logo_label.setFont(logo_font)
        self.logo_label.setAlignment(Qt.AlignCenter)
        self.ori_excel_layout=QHBoxLayout()
        self.ori_excel_layout.setContentsMargins(25, 15, 15, 20)
        self.ori_excel_label=QLabel('人员工时表:')
        self.ori_edit=QLineEdit()
        self.ori_excel_btn=QPushButton('...')
        self.ori_excel_btn.setMaximumWidth(40)
        self.ori_excel_layout.addWidget(self.ori_excel_label)
        self.ori_excel_layout.addWidget(self.ori_edit)
        self.ori_excel_layout.addWidget(self.ori_excel_btn)

        self.btn_layout=QHBoxLayout()
        self.btn_layout.setContentsMargins(25,15,25,20)
        self.limit_btn=QPushButton('限定再分配')
        self.limit_btn.setMinimumHeight(50)
        self.resigned_btn=QPushButton('调整分配')
        self.resigned_btn.setMinimumHeight(50)
        self.btn_layout.addWidget(self.limit_btn)
        self.btn_layout.addWidget(self.resigned_btn)

        self.main_layout.addWidget(self.logo_label)
        self.main_layout.addLayout(self.ori_excel_layout)
        self.main_layout.addLayout(self.btn_layout)

        self.setLayout(self.main_layout)

if __name__ == '__main__':
    app=QApplication(sys.argv)
    t=TM_Window()
    t.show()
    sys.exit(app.exec_())

